<%@page import="tx.bj12320.model.*" %>
<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib tagdir="/WEB-INF/tags/simpletable" prefix="simpletable"%>
<%@ include file="/commons/taglibs.jsp" %>

<rapid:override name="head">
	<title><%=ActivityInfo.TABLE_ALIAS%> 维护</title>
<link rel="stylesheet" type="text/css" href="<c:url value="/widgets/jquery-easyui/themes/default/easyui.css"/>">
	<link rel="stylesheet" type="text/css" href="<c:url value="/widgets/jquery-easyui/themes/icon.css"/>">
	<script type="text/javascript" src="<c:url value="/widgets/jquery-easyui/jquery.easyui.min.js"/>"></script>
	<script type="text/javascript" src="<c:url value="/widgets/jquery-easyui/locale/easyui-lang-zh_CN.js"/>"></script>
	<script type="text/javascript" src="<c:url value="/widgets/jquery-easyui/easyloader.js"/>"></script>
	<link href="<c:url value="/widgets/simpletable/simpletable.css"/>" type="text/css" rel="stylesheet">
	<script type="text/javascript" src="<c:url value="/widgets/simpletable/simpletable.js"/>"></script>
</rapid:override>

<rapid:override name="content">


	<div class="gridTable">



		<table width="100%"  border="0" cellspacing="0" class="gridBody">
		  <thead>

			  <tr>
				<th style="width:1px;"> &nbsp;</th>

				<!-- 排序时为th增加sortColumn即可,new SimpleTable('sortColumns')会为tableHeader自动增加排序功能; -->

				<th sortColumn="ACTIVITY_NAME" ><%=ActivityInfo.ALIAS_ACTIVITY_NAME%></th>
				<th sortColumn="RECEIVE_TIME" ><%=ActivityInfo.ALIAS_RECEIVE_TIME%></th>
				<th sortColumn="FINISH_TIME" ><%=ActivityInfo.ALIAS_FINISH_TIME%></th>
				<th sortColumn="OPERATOR_NAME" ><%=ActivityInfo.ALIAS_OPERATOR_NAME%></th>
				<th sortColumn="OPIN" ><%=ActivityInfo.ALIAS_OPIN%></th>

			  </tr>

		  </thead>
		  <tbody>
		  	  <c:forEach items="${page.result}" var="item" varStatus="status">

			  <tr class="${status.count % 2 == 0 ? 'odd' : 'even'}">
				<td>${page.thisPageFirstElementNumber + status.index}</td>

				<td><c:out value='${item.activityNameString}'/>&nbsp;</td>
				<td><c:out value='${item.receiveTimeString}'/>&nbsp;</td>
				<td><c:out value='${item.finishTimeString}'/>&nbsp;</td>
				<td><c:out value='${item.operatorName}'/>&nbsp;</td>
				<td><c:out value='${item.opin}'/>&nbsp;</td>

			  </tr>
<s:if test="%{@tx.bj12320.util.WebUtils@is12320User()}">
			  <tr class="${status.count % 2 == 0 ? 'odd' : 'even'}">
			  <td colspan="6">
	<div id="p" class="easyui-panel" style="width:600px;padding:10px;" loadingMessage="正在装载，请稍后……"
				title="${item.activityNameString}详细信息" iconCls="icon-search"
				collapsible="true"  collapsed="true" href="${ctx}/pages/ActivityInfo/showActivityInfoDetail.do?activityInfoId=${item.activityInfoId}"/>

			  </td>
			  </tr>
</s:if>
		  	  </c:forEach>
		  </tbody>
		</table>

	</div>
	</form>
</rapid:override>

<%-- jsp模板继承,具体使用请查看: http://code.google.com/p/rapid-framework/wiki/rapid_jsp_extends --%>
<%@ include file="base.jsp" %>

